package cn.mrlong.tools.relax

import cn.mrlong.tools.bean.Note
import cn.mrlong.tools.bean.NoteDaoImpl
import cn.mrlong.tools.service.DatabaseBasicService
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent

class ResetRemindAction : AnAction() {
    override fun actionPerformed(anActionEvent: AnActionEvent) {
        if (RestRemindDialogWrapper().showAndGet()) {
            println("休息结束")
            var note = Note()
            note.title = "测试"
            NoteDaoImpl().insert(DatabaseBasicService().connection, note)
        }
    }
}
